Package pl.wendigo.chrome.api.layertree

Contains DevTools Protocol LayerTree domain implementation accessible via LayerTreeDomain class.

Types

CompositingReasonsRequest
Link copied to clipboard
data class CompositingReasonsRequest(layerId: LayerId)
Represents request frame that can be used with LayerTree#compositingReasons operation call.
CompositingReasonsResponse
Link copied to clipboard
data class CompositingReasonsResponse(compositingReasons: List<String>, compositingReasonIds: List<String>)
Represents response frame that is returned from LayerTree#compositingReasons operation call.
Layer
Link copied to clipboard
data class Layer(layerId: LayerId, parentLayerId: LayerId?, backendNodeId: BackendNodeId?, offsetX: Double, offsetY: Double, width: Double, height: Double, transform: List<Double>?, anchorX: Double?, anchorY: Double?, anchorZ: Double?, paintCount: Int, drawsContent: Boolean, invisible: Boolean?, scrollRects: List<ScrollRect>?, stickyPositionConstraint: StickyPositionConstraint?)
Information about a compositing layer.
LayerId
Link copied to clipboard
typealias LayerId = String

Unique Layer identifier.

LayerPaintedEvent
Link copied to clipboard
data class LayerPaintedEvent(layerId: LayerId, clip: Rect) : Event
LayerTreeDidChangeEvent
Link copied to clipboard
data class LayerTreeDidChangeEvent(layers: List<Layer>?) : Event
LayerTreeDomain
Link copied to clipboard
class LayerTreeDomain : Domain
LayerTreeDomain represents LayerTree protocol domain request/response operations and events that can be captured.
LoadSnapshotRequest
Link copied to clipboard
data class LoadSnapshotRequest(tiles: List<PictureTile>)
Represents request frame that can be used with LayerTree#loadSnapshot operation call.
LoadSnapshotResponse
Link copied to clipboard
data class LoadSnapshotResponse(snapshotId: SnapshotId)
Represents response frame that is returned from LayerTree#loadSnapshot operation call.
MakeSnapshotRequest
Link copied to clipboard
data class MakeSnapshotRequest(layerId: LayerId)
Represents request frame that can be used with LayerTree#makeSnapshot operation call.
MakeSnapshotResponse
Link copied to clipboard
data class MakeSnapshotResponse(snapshotId: SnapshotId)
Represents response frame that is returned from LayerTree#makeSnapshot operation call.
PaintProfile
Link copied to clipboard
typealias PaintProfile = List<Double>

Array of timings, one per paint step.

PictureTile
Link copied to clipboard
data class PictureTile(x: Double, y: Double, picture: String)
Serialized fragment of layer picture along with its offset within the layer.
ProfileSnapshotRequest
Link copied to clipboard
data class ProfileSnapshotRequest(snapshotId: SnapshotId, minRepeatCount: Int?, minDuration: Double?, clipRect: Rect?)
Represents request frame that can be used with LayerTree#profileSnapshot operation call.
ProfileSnapshotResponse
Link copied to clipboard
data class ProfileSnapshotResponse(timings: List<PaintProfile>)
Represents response frame that is returned from LayerTree#profileSnapshot operation call.
ReleaseSnapshotRequest
Link copied to clipboard
data class ReleaseSnapshotRequest(snapshotId: SnapshotId)
Represents request frame that can be used with LayerTree#releaseSnapshot operation call.
ReplaySnapshotRequest
Link copied to clipboard
data class ReplaySnapshotRequest(snapshotId: SnapshotId, fromStep: Int?, toStep: Int?, scale: Double?)
Represents request frame that can be used with LayerTree#replaySnapshot operation call.
ReplaySnapshotResponse
Link copied to clipboard
data class ReplaySnapshotResponse(dataURL: String)
Represents response frame that is returned from LayerTree#replaySnapshot operation call.
ScrollRect
Link copied to clipboard
data class ScrollRect(rect: Rect, type: String)
Rectangle where scrolling happens on the main thread.
SnapshotCommandLogRequest
Link copied to clipboard
data class SnapshotCommandLogRequest(snapshotId: SnapshotId)
Represents request frame that can be used with LayerTree#snapshotCommandLog operation call.
SnapshotCommandLogResponse
Link copied to clipboard
data class SnapshotCommandLogResponse(commandLog: List<JsonElement>)
Represents response frame that is returned from LayerTree#snapshotCommandLog operation call.
SnapshotId
Link copied to clipboard
typealias SnapshotId = String

Unique snapshot identifier.

StickyPositionConstraint
Link copied to clipboard
data class StickyPositionConstraint(stickyBoxRect: Rect, containingBlockRect: Rect, nearestLayerShiftingStickyBox: LayerId?, nearestLayerShiftingContainingBlock: LayerId?)
Sticky position constraints.